
public class Tank {
    private int x;
    private int y;
    private int direct; //0:up 1:right 2:down 3:left

    public Tank(int x, int y) {
        this.x = x;
        this.y = y;
    }

    //getter and setter
    public int getX() {
        return x;
    }
    public int getY(){
        return y;
    }
    public void setX(int x) {
        this.x = x;
    }
    public void setY(int y) {
        this.y = y;
    }
    
    public void setDirect(int direct) {
        this.direct = direct;
    }
    public int getDirect() {
        return direct;
    }
}
